package com.ruoyi.patrol.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 单问题答案对象 pt_form_details_option
 * 
 * @author lkm
 * @date 2022-11-12
 */
public class PtFormDetailsOption extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 备选答案编号 */
    private Long id;

    /** 表单问题编号 */
    @Excel(name = "表单问题编号")
    private Long fromDetailsId;

    /** 答案名称 */
    @Excel(name = "答案名称")
    private String formDetailsOptionName;

    /** 是否说明原因（0：否，1：是） */
    @Excel(name = "是否说明原因", readConverterExp = "0=：否，1：是")
    private Long reason;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFromDetailsId(Long fromDetailsId) 
    {
        this.fromDetailsId = fromDetailsId;
    }

    public Long getFromDetailsId() 
    {
        return fromDetailsId;
    }
    public void setFormDetailsOptionName(String formDetailsOptionName) 
    {
        this.formDetailsOptionName = formDetailsOptionName;
    }

    public String getFormDetailsOptionName() 
    {
        return formDetailsOptionName;
    }
    public void setReason(Long reason) 
    {
        this.reason = reason;
    }

    public Long getReason() 
    {
        return reason;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("fromDetailsId", getFromDetailsId())
            .append("formDetailsOptionName", getFormDetailsOptionName())
            .append("reason", getReason())
            .toString();
    }
}
